<ui:composition template="index.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<ui:define name="title">
        New page title here
    </ui:define>

	<ui:define name="products">
		<h4>Produkte</h4>
		<h:form>
			<h:dataTable first="#{pricelistBean.counter}" rows="5" var="current"
				value="#{pricelistBean.products}">

				<f:facet name="header">
					<h:outputText value="#{pricelistBean.name}" />
				</f:facet>
				<h:column>
					<h:outputText value="#{current.name}" />
				</h:column>
				<h:column>
					<h:outputText value="#{current.price}" />
				</h:column>


				<f:facet name="footer">
					<h:panelGroup>
						<h:commandButton value="Zuruck" action="#{pricelistBean.backward}" />
						<h:commandButton value="Vor" action="#{pricelistBean.forward}" />
					</h:panelGroup>
				</f:facet>
			</h:dataTable>
		</h:form>
	</ui:define>
	
	<div id="leftNavi">
		<ui:insert name="content">Default content</ui:insert>
	</div>
</ui:composition>